package com.firebird.app.fekpsl.api

import com.firebird.app.fekpsl.bean.BaseListResponseBody
import com.firebird.app.fekpsl.bean.Fan
import com.firebird.app.fekpsl.bean.HttpResult
import com.firebird.app.fekpsl.bean.LevelScore
import io.reactivex.Observable
import retrofit2.http.*

/**
 * Created by firebird on 2018/4/21.
 */
interface RankApiService {
    /**
     * 获取粉丝排行榜
     * @param pageNo
     */
    @GET("rank/fan/list/{pageNo}/json")
    fun getFanRankList(@Path("pageNo") pageNo: Int): Observable<HttpResult<BaseListResponseBody<Fan>>>
    @GET("rank/friend/level_score/list/{pageNo}/{userUuid}/json")
    fun getLevelScoreFriendRankList(
            @Path("pageNo") pageNo: Int,
            @Path("userUuid") userUuid:String): Observable<HttpResult<BaseListResponseBody<LevelScore>>>
    @GET("rank/world/level_score/list/{pageNo}/json")
    fun getLevelScoreWorldRankList(@Path("pageNo") pageNo: Int): Observable<HttpResult<BaseListResponseBody<LevelScore>>>
}